package com.his.back.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class ExPatientDrug {
    private String patientId;
    private Integer drugId;
    private Integer drugNum;

    //@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date drugDatetime;

    private Integer stateId;
    private String invoiceId;

    private String drugName;
    private Double drugUnitPrice;
    private String stateName;

    public String getPatientId() {
        return patientId;
    }

    public void setPatientId(String patientId) {
        this.patientId = patientId;
    }

    public Integer getDrugId() {
        return drugId;
    }

    public void setDrugId(Integer drugId) {
        this.drugId = drugId;
    }

    public Integer getDrugNum() {
        return drugNum;
    }

    public void setDrugNum(Integer drugNum) {
        this.drugNum = drugNum;
    }

    public Date getDrugDatetime() {
        return drugDatetime;
    }

    public void setDrugDatetime(Date drugDatetime) {
        this.drugDatetime = drugDatetime;
    }

    public Integer getStateId() {
        return stateId;
    }

    public void setStateId(Integer stateId) {
        this.stateId = stateId;
    }

    public String getInvoiceId() {
        return invoiceId;
    }

    public void setInvoiceId(String invoiceId) {
        this.invoiceId = invoiceId;
    }

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    public Double getDrugUnitPrice() {
        return drugUnitPrice;
    }

    public void setDrugUnitPrice(Double drugUnitPrice) {
        this.drugUnitPrice = drugUnitPrice;
    }

    public String getStateName() {
        return stateName;
    }

    public void setStateName(String stateName) {
        this.stateName = stateName;
    }

    @Override
    public String toString() {
        return "ExPatientDrug{" +
                "patientId='" + patientId + '\'' +
                ", drugId=" + drugId +
                ", drugNum=" + drugNum +
                ", drugDatetime=" + drugDatetime +
                ", stateId=" + stateId +
                ", invoiceId='" + invoiceId + '\'' +
                ", drugName='" + drugName + '\'' +
                ", drugUnitPrice=" + drugUnitPrice +
                ", stateName='" + stateName + '\'' +
                '}';
    }
}
